﻿using System.Configuration;


namespace Framework.Email.Configuration
{
    public class EmailTemplateElement : ConfigurationElement
    {
        [ConfigurationProperty("key", DefaultValue = "", IsKey = true, IsRequired = true)]
        public string Key
        {
            get { return ((string)(base["key"])); }
            set { base["key"] = value; }
        }

        [ConfigurationProperty("template", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string Template
        {
            get { return ((string)(base["template"])); }
            set { base["template"] = value; }
        }

        [ConfigurationProperty("url", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string TemplateUrl
        {
            get { return ((string)(base["url"])); }
            set { base["url"] = value; }
        }

        [ConfigurationProperty("subject", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string Subject
        {
            get { return ((string)(base["subject"])); }
            set { base["subject"] = value; }
        }
    }
}
